第8步:让霸王龙说出它在月球上的重量!

  • 使用 Say 指令让 dino_sprite 说出它在月球上的重量。
  • .say() 中的字符串应该是: "I'd weigh " + str(dino_moon_weight)

我们可以发现, dino 在月球上的重量只有 2129.6 磅!记住,这是地球上重量的16%!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)